<?php require_once('../Connections/hitekforyou.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;    
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}
}

mysql_select_db($database_hitekforyou, $hitekforyou);
$query_admin_menu = "SELECT * FROM admin_menu WHERE AnHien = 1 ORDER BY idMenu ASC";
$admin_menu = mysql_query($query_admin_menu, $hitekforyou) or die(mysql_error());
$row_admin_menu = mysql_fetch_assoc($admin_menu);
$totalRows_admin_menu = mysql_num_rows($admin_menu);
?>

<table width="100%" border="0" cellpadding="4" cellspacing="0" id="menu">

  <?php do { ?>

    <tr>
      <td align="left"><a href="<?php echo $row_admin_menu['Url']; ?>"><?php echo $row_admin_menu['TenMenu']; ?></a></td>
    </tr>

    <?php } while ($row_admin_menu = mysql_fetch_assoc($admin_menu)); ?>
   
</table>
<?php
mysql_free_result($admin_menu);
?>
